package com.rds.system.domain;

import com.rds.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 下载记录表实体类
 * @author : LiChuanlong
 * @date : 2021-08-12
 */
public class RdaDownload extends BaseEntity {

    /** 下载记录Id */
    private Long id;
    /** 用户Id */
    private Long ownerid;

    /*用户名称**/
    private String username;

    /** 文档id */
    private String docId;
    /**下载状态(0 表示下载成功;1表示下载失败)*/
    private Integer sys_common_status;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Long ownerid) {
        this.ownerid = ownerid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }


    public Integer getSys_common_status() {
        return sys_common_status;
    }

    public void setSys_common_status(Integer sys_common_status) {
        this.sys_common_status = sys_common_status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username",getUsername())
                .append("docId", getDocId())
                .append("downloadTime", getCreateTime())
                .append("sys_common_status",getSys_common_status())
                .toString();
    }
}
